#include "qstylesheetwidgetfactory.h"

#include "qbackgroundwidget.h"
#include "qborderwidget.h"
#include "qtextwidget.h"
using namespace CORELIB;

QAbstractStylesheetWidget* QStylesheetWidgetFactory::createWidget(const QString &type)
{
    QAbstractStylesheetWidget* ret=NULL;
    if(type=="background")
    {
        ret=new QBackgroundWidget;
    }
    else if(type=="border")
    {
        ret=new QBorderWidget;
    }
    else if(type=="stylesheet_text")
    {
        ret=new QTextWidget;
    }
    return ret;
}
